Avoid a division by zero
authorMatthias Clasen <mclasen@redhat.com>
Mon, 25 Jul 2016 12:32:24 +0000 (08:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 25 Jul 2016 12:32:24 +0000 (08:32 -0400)
commitf44baf51d9e8616acd9b929d9cfef83a4a3ad00a
treec3d75710700d92b787e9c6a5d8a20e36723f1a00
parent8db8891c66e9b5dc07deba631f2facc9383b7c2e
Avoid a division by zero

It appears that xvfb returns nonsense in its xrandr resources.
Avoid a crash when that happens.

https://bugzilla.gnome.org/show_bug.cgi?id=768999
gdk/x11/gdkscreen-x11.c